package com.wasion.gydpe.dao;

import java.util.List;
import java.util.Map;

import com.wasion.gydpe.exception.DataAccessException;
import com.wasion.gydpe.model.Resource;

/**
 * 
 * @ClassName: ResourceDao
 * @Description: 资源（权限）数据访问层接口
 * @author 高意
 * @date Sep 25, 2012 8:39:34 AM
 * 
 */
public interface ResourceDao extends GenericDao<Resource, Long> {

	/**
	 * 
	 * @Title: queryTopUndistributeds
	 * @Description: 查询一级未分配的资源
	 * @param
	 * @return
	 * @throws
	 */
	public List<String> queryTopUndistributeds(Map<String, Object> paramMap)
			throws DataAccessException;

	/**
	 * 
	 * @Title: queryUndistributeds
	 * @Description: 查询未分配的资源
	 * @param
	 * @return
	 * @throws
	 */
	public List<Resource> queryUndistributeds(Map<String, Object> paramMap)
			throws DataAccessException;

	/**
	 * 
	 * @Title: queryTopDistributeds
	 * @Description: 查询一级已分配的资源
	 * @param
	 * @return
	 * @throws
	 */
	public List<String> queryTopDistributeds(Map<String, Object> paramMap)
			throws DataAccessException;

	/**
	 * 
	 * @Title: queryUndistributeds
	 * @Description: 查询已分配的资源
	 * @param
	 * @return
	 * @throws
	 */
	public List<Resource> queryDistributeds(Map<String, Object> paramMap)
			throws DataAccessException;
}
